import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/ajax/admin/post/list',
    method: 'post',
    params
  })
}

export function changeStatus(id) {
  return request({
    url: '/ajax/admin/post/' + id + '/change_status',
    method: 'post'
  })
}

export function deleteRow(id) {
  return request({
    url: '/ajax/admin/post/' + id + '/del',
    method: 'post'
  })
}
export function editInfo(params) {
  return request({
    url: '/ajax/admin/post/save',
    method: 'post',
    params
  })
}
